package com.happyclub.lbj.service;

import com.happyclub.pojo.TbProduct;
import com.happyclub.utils.JsonResult;
import org.springframework.web.multipart.MultipartFile;

public interface IProduct {
    //发布商品
    JsonResult saveProduct(TbProduct tbProduct, MultipartFile[] multipartFiles);

    //保存商品的颜色和尺寸
    JsonResult saveProductColorAndSize(String productId,String clor,String size);

    //商品是否上架 0:下架 , 1:上架
    JsonResult updateProUpper(String productId,Integer upper);

    //查出所有上架商品信息
    JsonResult findAllProByUpper();

    //点进商品详情时
    JsonResult findProDetail(String productId);

    //增加商品浏览次数
    JsonResult addLookNum(String id);
}
